<p-card class="flex-1 flex"
  styleClass="flex flex-1 flex-column">
  <ng-template pTemplate="header">
    <p-toolbar [style]="{'background-image': 'linear-gradient(to right, var(--bluegray-500), var(--bluegray-800))' }">
      <div class="p-toolbar-group-start">
        <button pButton
          icon="pi {{leftSidebarIcon}}"
          class="mr-2 p-button-sm"
          (click)="onShowLeftSidebar()"></button>
        <button pButton
          icon="pi pi-save"
          class="mr-2 p-button-sm"
          (click)="onSaveClick()"></button>
        <button pButton
          icon="pi pi-folder-open"
          class="mr-2 p-button-sm"
          (click)="onLoadClick()"></button>
        <button pButton
          class="mr-2 p-button-sm"
          (click)="onShowJsonClick()">JSON</button>
        <button pButton
          icon="pi pi-cloud-upload"
          class="mr-2 p-button-sm"
          (click)="onSaveToCloud()"></button>
        <button pButton
          class="p-button-sm mr-2"
          icon="pi pi-upload"
          title="测试"
          (click)="onTestClick()"></button>
      </div>
      <div class="p-toolbar-group-center">
      </div>
      <div class="p-toolbar-group-end">
        <p-button icon="pi pi-cog"
          class="mr-2 p-button-sm"
          [link]="true"
          (click)="onEditScenario()"></p-button>

      </div>
    </p-toolbar>
  </ng-template>
  <!-- <ng-template pTemplate="content">
    <div class="flex-1"
      style="background-color: gray;" #graphContainer>Hello</div>
  </ng-template> -->
  <div class="flex-1"
    class="graph-container"
    #graphContainer></div>

</p-card>


<app-control-lib #ctrlLib
  (startdrag)="startDrag($event)"></app-control-lib>

<app-scenario-setting #scenarioSetting
  (onHide)="onEditScenarioComplate()"></app-scenario-setting>
<app-pipline-setting #piplineSetting
  (onHide)="onEditComplate($event)"></app-pipline-setting>
<app-site-setting #siteSetting
  (onHide)="onEditComplate($event)"></app-site-setting>
<app-srm-setting #srmSetting
  (onHide)="onEditComplate($event)"></app-srm-setting>